/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.viajarfacil.DAO;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Felizardo
 */
interface GenericDAO<T, I extends Serializable> {
    public T get(I id);
    public List<T> findByExample(T exampleInstance, String[] excludeProperty);
    public void remove(T entity);
    public List<T> findAll();
    public T saveOrUpdate(T entity);
    public void flush();
    public void clear();
}
